package modelLayer;


/**
 * Write a description of class StaffContainer here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */

import java.util.ArrayList;

public class StaffContainer
{
    // instance variables - replace the example below with your own
    private ArrayList<Staff> staff;
    private static StaffContainer instance;

    /**
     * Constructor for objects of class StaffContainer
     */
    public StaffContainer()
    {
        // initialise instance variables
        staff = new ArrayList<>();
    }

    public static StaffContainer getInstance(){
        if (instance == null) {
            instance = new StaffContainer();
        }
        return instance;
    }
    
    public void addStaff (Staff newStaff) {staff.add(newStaff);}
    public ArrayList<Staff> getAllStaff() {return staff;}
}
